server_bin = smartEditor230 
image = smarteditor
version = v1.0.0 
preparego:
	./prepare_go.sh 
build:
	
	go mod tidy; \
	go build -tags crypto -o $(server_bin)
start:  
	./start.sh $(server_bin)
stop:
	./stop.sh $(server_bin)
restart:
	./stop.sh $(server_bin) ; \
	./start.sh  $(server_bin) 
docker-build: 
	./prepare.sh 
	docker build -t $(image) -f ./Dockerfile . ;\
	docker tag $(image) $(image):$(version)
docker-start: 
	./docker_start.sh 
docker-stop: 
	./docker_stop.sh $(image)
